package com.itheima.mapper;

import com.itheima.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {

    /**
     * 根据用户名查询用户
     *
     * @param username
     * @return
     */
    @Select("select id, birthday, gender, username, password, remark, station, telephone" +
            " from t_user where username = #{username}")
    User selectByUsername(String username);
}
